package com.yjzx.util.common.util;

/**
 * @author yjzx
 * @date 2024/6/26
 * @description PageUtil
 */
public class PageUtil {

    public static int totalPage(int total, int pageSize) {
        return total % pageSize != 0 ? (total / pageSize) + 1 : total / pageSize;
    }

}
